/*
 * EditorForm.h
 * Authors: 107 <107@mail.ru>
 * License: GPL >=2.0
 *
 *
 */

#ifndef EDITORFORM_H_
#define EDITORFORM_H_

#include <FBase.h>
#include <FGraphics.h>
#include <FUi.h>
#include "InheritanceContainer.h"

class EditorForm :
	public Osp::Ui::Controls::Form,
	public Osp::Ui::IActionEventListener,
 	public Osp::Ui::IOrientationEventListener,
	public badadev::InheritanceContainer
{

private:
		Osp::Ui::Controls::EditArea *__pEdit1;
		Osp::Ui::Controls::ScrollPanel *__pPanel1;

		void OnActionPerformed( const Osp::Ui::Control& source, int actionId );
		void OnOrientationChanged( const Osp::Ui::Control &source, Osp::Ui::OrientationStatus orientationStatus );

// Construction
public:

	enum {
		   ID_EDITOR_CLOSE = 5000,
		   ID_EDITOR_SAVE
	};
	EditorForm (void);
	~EditorForm (void);

	result 					Initialize( InheritanceContainer &parent );
	void					Resize( void );
	Osp::Base::String		GetText( void );
	void					SetText( const Osp::Base::String & );


};


#endif /* EDITORFORM_H_ */
